//% color="#00c4dd" iconWidth=50 iconHeight=40
namespace release_button{

    //% block="按键[BUTTON]被按下" blockType="boolean"
    //% BUTTON.shadow="dropdown" BUTTON.options="aaaa"

    export function push_butAB(parameter: any, block: any) {      
        let button = parameter.BUTTON.code;  
        Generator.addImport("from pinpong.board import Board,Pin");
        Generator.addCode(`button_${button}.is_pressed()==True`);
      
       }
    
       
    //% block="按键[BUTTON]被松开" blockType="boolean"
    //% BUTTON.shadow="dropdown" BUTTON.options="aaaa"

    export function release_butAB(parameter: any, block: any) {
        let button = parameter.BUTTON.code;  
        Generator.addImport("from pinpong.board import Board,Pin");
        Generator.addCode(`button_${button}.is_pressed()==False`);
   
    }
    
    
}